<!-- 上传 -->
<template>
  <el-upload
    action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
    :show-file-list="false">
    <el-button type="primary">{{ text }}</el-button>
  </el-upload>
  <el-text type="warning">XXXXX.pdf/png</el-text>
</template>

<script setup>
const props = defineProps({
  // 上传文案
  text: String,
})
</script>

<style lang="scss" scoped>
.el-upload{
  margin-right: 20px;
}
.el-button{
  width: 208px;
  margin-right: 20px;
}
</style>
